package com.ruoyi.lvlian.dto;


import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.utils.DateUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 合同信息对象 lv_contract_info
 *
 * @author liyuxi
 * @date 2024-07-22
 */
@Data
@ToString
public class ContractInfoDto {
    private static final long serialVersionUID = 1L;

    @ExcelProperty("合同编号")
    private String contractNum;

    @ExcelProperty("合同类型")
    @ApiModelProperty(value = "合同类型 1=,采=购合同,2=销售合同")
    private String contractType;

    @ExcelProperty("合同名称")
    @ApiModelProperty(value = "合同名称")
    private String contractName;




    @ApiModelProperty(value = "甲方编号-对应主体编号")
    private String buyerCode;

    @ExcelProperty("购买方联系人")
    @ApiModelProperty(value = "联系人名称-买方")
    private String buyerName;


    @ExcelProperty("购买方")
    @ApiModelProperty(value = "购买方公司")
    private String buyerCompanyName;

    @ExcelProperty("销售方名称")
    @ApiModelProperty(value = "销售方名称")
    private String sellerCompanyName;


    @ApiModelProperty(value = "发票号码 查支付")
    private String invoiceNum;


    @ApiModelProperty(value = "自然人的身份证号，公司的税号")
    private String code;
    @NotNull(message = "orgCodes不能为空") // 这是实际的验证注解
    private List<String> orgCodes;

    @ApiModelProperty(value = "是否有图")
    private Boolean haveImg;
}
